<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ taglib prefix="base" uri="http://qdbp.gitee.io/tags/base/"%>

<!DOCTYPE html>
<html>
<head>
	<%@ include file="../_/meta.jsp"%>
	<title>找回密码 - ${pv.project.name}</title>
	<%@ include file="../_/style.jsp"%>
</head>

<body>
	<%@ include file="../_/header.jsp"%>
	<header class="breadcrumbs bg-light-grey">
		<div class="container">
			<a href="<base:url href='/' />">首页</a> &gt; <a>找回密码</a>
		</div>
	</header>
	<section class="ibody bg-light-grey pb-lg">
		<div class="container">
			<div class="bg-white ptb-lg">
				<div class="row">
					<div class="col-xs-8 col-xs-offset-2 col-md-6 col-md-offset-3">
						<form class="form-horizontal vld-form" name="repwd" method="POST" action="<base:url href='actions/account-auth/repassword/by-valid-code.json'/>" data-to="<base:url href='auth/login/' />" onsubmit="return false">
							<div class="form-group">
								<label class="col-sm-3 control-label"><i class="asterisk"></i>手机号码</label>
								<div class="col-sm-9">
									<div class="input-group input-btn-box">
										<input name="account" type="text" class="form-control" data-vld="[ {required:true}, {regexp:'mobile'}, {ajax:'<base:url href='actions/account-auth/login/available.json'/>',fields:'account'} ]" />
										<div class="input-group-btn"> <button class="btn btn-default do-send" data-countdown="{second}秒后重试" data-url="<base:url href='actions/account-auth/repassword/send-valid-code.json'/>">发送验证码</button> </div>
									</div>
									<div class="vld-tips"></div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label"><i class="asterisk"></i>验证码</label>
								<div class="col-sm-9">
									<input name="validCode" type="text" class="form-control" data-vld="{required:true}" />
									<div class="vld-tips"></div>
								</div>
							</div>
							<p class="mtb-xs text-center">重设登录密码</p>
							<div class="form-group">
								<label class="col-sm-3 control-label"><i class="asterisk"></i>新登录密码</label>
								<div class="col-sm-9">
									<input name="newPassword" type="password" class="form-control" data-vld="[ {required:true}, {length:[6,50]}, {pwdlevel:'medium'} ]" />
									<div class="vld-tips"></div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label"><i class="asterisk"></i>确认新密码</label>
								<div class="col-sm-9">
									<input name="confirmPassword" type="password" class="form-control" data-vld="[ {required:true}, {compare:'[name=newPassword]'} ]" />
									<div class="vld-tips"></div>
								</div>
							</div>
							<div class="form-group text-center pt-md">
								<button class="btn btn-success do-submit plr-md" data-options="message:'密码重置'">提&nbsp;交</button>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</section>
	<%@ include file="../_/footer.jsp"%>


	<%@ include file="../_/script.jsp"%>
	<script src="<base:url href='assets/libs/zhh.validate/code/zhh.validate.js'/>" type="text/javascript"></script>
	<script src="<base:url href='assets/base/core/bootstrap/plugins-init.js'/>" type="text/javascript" data-zload-ignore="true"></script>
	<script src="<base:url href='assets/libs/cookie/cookie.js'/>" type="text/javascript"></script>
	<script src="<base:url href='assets/pc/auth/auth-base.js'/>" type="text/javascript"></script>
	<script src="<base:url href='assets/pc/auth/repwd.js'/>" type="text/javascript"></script>
	<%@ include file="../_/analysis.jsp"%>
</body>
</html>
